package com.fcat.common.fdfs;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;


/**
 * ${DESCRIPTION}
 *
 * @author xiangfei
 * @create 2017-05-25 12:44
 */
@SpringBootApplication(scanBasePackages = {"com.fcat"})
@ServletComponentScan("com.fcat")
@EnableAsync
@EnableCaching
@EnableEurekaClient
@EnableFeignClients
@EnableDiscoveryClient  //激活eureka中的DiscoveryClient实现
public class FdfsBootstrap implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(FdfsBootstrap.class, args);
    }

    @Override
    public void run(String... strings) {
    }
}
 